#ifndef	_CONFIG_H_
#define	_CONFIG_H_

#define APP_VectTab_FLASH           SYSTEM_ADD

#define DEBUG_ON				0
#define DEBUG_MSG
#define DEBUG_NOCHECK			0

#include <stdio.h>

#include <string.h>
#include <ctype.h>
#include "stm32f10x.h"
#include "def.h"
#include "fifo.h"

#define ResetUserTimer	UsrTimer_Set
#define ReadUserTimer	UsrTimer_Get

#include "commonFunc.h"
#include "ipcDef.h"

#include "carDef.h"

#include "sGPIO.h"
#include "macrodef.h"
#include "_stm32_it.h"
#include "systimer.h"
#include "tevt.h"
#include "IO_ctrl.h"
#include "baseDATAdef.h"
#include "adcapp.h"
#include "AccProcessor.h"
#include "uartApp.h"
#include "iicSoft.h"
#include "SPIHard.h"
#include "can.h"

#include "key.h"
#include "keyExec.h"

#include "canBenzC200.h"
#include "IO.h"

#include "video.h"

#include "debug.h"

#include "ipcExchange.h"

#include "Storage.h"

#include "Ant_proc.h"

#include "naviBoard.h"
#include "CarInfo.h"

#include "shell_cfg.h"
#include "shell.h"
#include "cmd.h"
#include "TW8825.h"
#include "OSDMenu.h"
#include "TW88SPI.h"
#include "shellEve.h"

#include "Adc.h"

#include "can1Proc.h"
#include "can2Proc.h"
#include "MCP2515.h"
#include "iCommand.h"
#include "MAX9259.h"
#include "iCommand.h"
#include "Dashboard.h"

#include "SX6520.h"
/* <DEBUG> */

#define D_DEBUG
#ifdef D_DEBUG
/* A C99 compiler is needed for this expression! */
/* <recommended usage> DEBUG_INFO("<module_name>info");
 * eg. DEBUG_INFO("<uart>Rx message checksum error!");
 * */
#define Trace(...)     printf(__VA_ARGS__)
#define TraceLine      printf("%s,%d\r\n",__FILE__,__LINE__)
#else
#define Trace(...)
#define TraceLine 
#endif  /* ifdef D_DEBUG */

//#define MMI_COMM_DBG 1

void WDR_Init(char WDR_Mode);
void WDR(void);
void NVIC_Configuration(enum IRQn iIRQn,u8 PreePriority,u8 SubPriority,FunctionalState bEnable);
void MakeItSeemedReset(u8 para);
void BusyButNeedToDo(void);
void FreeIdel(void);
/******************* (C) COPYRIGHT 20100814 JQilin*****END OF FILE****/

#endif
